﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CSharpCC
{
    public partial class Form1 : Form
    {
        kc kcs = new kc();
        public Form1()
        {
            InitializeComponent();
            kcs.output = (s) => {
                textBox2.AppendText(s);
            };
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int pc=kcs.Comper(textBox1.Text, 1);
            kcs.run(pc, 0, "", true);
        }


    }
}
